package com.roomio.core.security.service;

import java.util.List;

import org.springframework.security.core.userdetails.UserDetails;

import com.roomio.core.security.model.User;

public interface UserInfoService {

	public void persist(User user);

	public int countUserInfoes();

	public List<User> findAllUserInfoes();

	public void merge(User user);

	void deleteByEmail(String id);

	User findById(Long id);

	public UserDetails findByIdentityUrl(String username);

	//User findByEmail(String username);

	void delete(Long id);

	public List<User> findUserInfoEntries(int firstResult, int sizeNo);

	User findByEmail(String email);
}